﻿<html>
<head>
    <title>Splitter - jQuery MiniUI 3.0 Documentation</title>    

    <meta http-equiv="content-type" content="text/html; charset=UTF-8" />
    <meta name="keywords" content="jquery,datagrid,grid,表格控件,ajax,web开发,java开发,.net开发,tree,table,treegrid" />
    <meta name="description" content="jQuery MiniUI - 专业WebUI控件库。jQuery MiniUI是使用Javascript实现的前端Ajax组件库，支持所有浏览器，可以跨平台开发，如Java、.Net、PHP等。" />

    <link href="css/common.css" rel="stylesheet" type="text/css" />
    <script src="core.js" type="text/javascript"></script>
    
        

</head>
<body>
    <h3>mini.Splitter</h3>
    
    <p>分隔容器。</p>

    <h4>Extend</h4>
    <p> <a class="extendlink" href="control.html">mini.Control</a></p>    

    <h4>Usage</h4>
<pre class="code"><span style="color:blue">&lt;</span><span style="color:maroon">div </span><span style="color:red">class</span><span style="color:blue">="mini-splitter" </span><span style="color:red">style</span><span style="color:blue">="</span><span style="color:red">width</span><span style="color:blue">:350px;</span><span style="color:red">height</span><span style="color:blue">:200px;"&gt;
    &lt;</span><span style="color:maroon">div </span><span style="color:red">size</span><span style="color:blue">="30%" </span><span style="color:red">showCollapseButton</span><span style="color:blue">="true"&gt;
        </span>1
    <span style="color:blue">&lt;/</span><span style="color:maroon">div</span><span style="color:blue">&gt;
    &lt;</span><span style="color:maroon">div </span><span style="color:red">showCollapseButton</span><span style="color:blue">="true"&gt;
        </span>2
    <span style="color:blue">&lt;/</span><span style="color:maroon">div</span><span style="color:blue">&gt;        
&lt;/</span><span style="color:maroon">div</span><span style="color:blue">&gt;
</span></pre>

    <h4>Screenshots</h4>
    <img src="images/splitter.gif" />

    <h4>Examples</h4>
    <a class="demo" href="../../demo/splitter/splitter.html" target="_blank">Splitter</a> 
    

    <h4>Properties</h4>
    <table>
        <tr><th>Name</th><th>Type</th><th>Description</th><th>Default</th><th><a href="setsupport.html" target="_blank" style="padding-left:5px;padding-right:5px;"> Set? </a></th><th><a href="getsupport.html" target="_blank" style="padding-left:5px;padding-right:5px;"> Get? </a></th><th><a href="tagsupport.html" target="_blank" style="padding-left:5px;padding-right:5px;"> Tag? </a></th></tr>
        <tr>
            <td>vertical</td>
            <td>Boolean</td>
            <td>是否竖向</td>
            <td>false</td>
            <td style="text-align:center;">&radic;</td><td style="text-align:center;">&radic;</td><td style="text-align:center;">&radic;</td>
        </tr>
        <tr>
            <td>allowResize</td>
            <td>Boolean</td>
            <td>是否允许拖拽调整</td>
            <td>true</td>
            <td style="text-align:center;">&radic;</td><td style="text-align:center;">&radic;</td><td style="text-align:center;">&radic;</td>
        </tr>
        <tr>
            <td>handlerSize</td>
            <td>Number</td>
            <td>分割条尺寸</td>
            <td>6</td>
            <td style="text-align:center;">&radic;</td><td style="text-align:center;">&radic;</td><td style="text-align:center;">&radic;</td>
        </tr>
    </table>

    <h4>Methods</h4>
    <table>
        <tr><th>Name</th><th>Parameter</th><th>Description</th><th>Return</th></tr>
        <tr>
            <td>setPanes（panes）</td>
            <td>panes：Array。2个元素。pane对象。</td>
            <td>设置面板配置数组。</td>
            <td></td>
        </tr>
        <tr>
            <td>updatePane（index, options）</td>
            <td></td>
            <td>更新面板对象。</td>
            <td></td>
        </tr>
        <tr>
            <td>getPane（index）</td>
            <td></td>
            <td>获取面板对象。</td>
            <td></td>
        </tr>
        <tr>
            <td>getPaneEl（index）</td>
            <td></td>
            <td>获取面板对象DOM元素。</td>
            <td></td>
        </tr>
        <tr>
            <td>expandPane（index）</td>
            <td></td>
            <td>展开面板。</td>
            <td></td>
        </tr>
        <tr>
            <td>collapsePane（index）</td>
            <td></td>
            <td>收缩面板。</td>
            <td></td>
        </tr>
        <tr>
            <td>showPane（index）</td>
            <td></td>
            <td>显示面板。</td>
            <td></td>
        </tr>
        <tr>
            <td>hidePane（index）</td>
            <td></td>
            <td>隐藏面板。</td>
            <td></td>
        </tr>
        <tr>
            <td>getPaneEl（index）</td>
            <td></td>
            <td>获取面板DOM对象。</td>
            <td>Element</td>
        </tr>
    </table>

    <h4>Events</h4>
    <table>
        <tr><th>Name</th><th>EventObject</th><th>Description</th></tr>
        <tr>
            <td>resize</td>
            <td>
            
            </td>
            <td>拖拽调节尺寸时发生</td>
        </tr>
        <tr>
            <td>collapse</td>
            <td>
            
            </td>
            <td>折叠面板时发生</td>
        </tr>
        <tr>
            <td>expand</td>
            <td>
            
            </td>
            <td>展开面板时发生</td>
        </tr>
    </table>


    <hr />

    <h4 name="pane">Pane Object</h4>
    <p>Splitter 面板对象，属性如下：</p>
    <table>
        <tr><th>Name</th><th>Type</th><th>Description</th><th>Default</th></tr>
        <tr>
            <td>minSize</td>
            <td>Number</td>
            <td>最小尺寸</td>
            <td>80</td>
            
        </tr>
        <tr>
            <td>maxSize</td>
            <td>Number</td>
            <td>最大尺寸</td>
            <td>3000</td>
            
        </tr>
        <tr>
            <td>size</td>
            <td>Number/String</td>
            <td>尺寸</td>
            <td></td>
            
        </tr>
        <tr>
            <td>showCollapseButton</td>
            <td>Boolean</td>
            <td>是否显示折叠图标</td>
            <td></td>
            
        </tr>
        <tr>
            <td>cls</td>
            <td>String</td>
            <td>面板样式类</td>
            <td></td>
            
        </tr>
        <tr>
            <td>style</td>
            <td>String</td>
            <td>面板样式</td>
            <td></td>
            
        </tr>
        <tr>
            <td>visible</td>
            <td>Boolean</td>
            <td>是否显示</td>
            <td></td>
            
        </tr>
        <tr>
            <td>expanded</td>
            <td>Boolean</td>
            <td>是否折叠</td>
            <td></td>
            
        </tr>
    </table>

</body>
</html>
